package com.hefeng.example.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.Date;

/**
 * 工单派发信息表;
 *
 * @author : http://www.chiner.pro
 * @date : 2022-9-2
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "工单派发信息表", description = "")
@TableName("work_order_distribution")
@Transactional

public class WorkOrderDistribution implements Serializable, Cloneable {
    /**
     * 数据状态;数据状态 1-启用 2-禁用 3-删除
     */
    @TableField("STATUS")
    @ApiModelProperty(name = "数据状态", notes = "数据状态 1-启用 2-禁用 3-删除")
    private String status;
    /**
     * 创建人
     */
    @TableField("CREATED_USER")
    @ApiModelProperty(name = "创建人", notes = "")
    private String createdUser;
    /**
     * 创建时间
     */

    @TableField("CREATED_TIME")
    @ApiModelProperty(name = "创建时间", notes = "")
    private Date createdTime;
    /**
     * 更新人
     */
    @TableField("UPDATED_USER")
    @ApiModelProperty(name = "更新人", notes = "")
    private String updatedUser;
    /**
     * 更新时间
     */

    @TableField("UPDATED_TIME")
    @ApiModelProperty(name = "更新时间", notes = "")
    private Date updatedTime;
    /**
     * 主键ID
     */
    @ApiModelProperty(name = "主键ID", notes = "")
    @TableId(value = "ID", type = IdType.AUTO)
    private String id;
    /**
     * 设备编码
     */
    @TableField("DEVICE_CODE")
    @ApiModelProperty(name = "设备编码", notes = "")
    private String deviceCode;
    /**
     * 工单ID
     */
    @TableField("WORK_ID")
    @ApiModelProperty(name = "工单ID", notes = "")
    private Integer workId;
    /**
     * 工单类型;1-自动告警工单，2-用户上报工单
     */
    @TableField("WORK_TYPE")
    @ApiModelProperty(name = "工单类型", notes = "1-自动告警工单，2-用户上报工单")
    private String workType;
    /**
     * 派发人员
     */
    @TableField("DISPATCHER")
    @ApiModelProperty(name = "派发人员", notes = "")
    private String dispatcher;
    /**
     * 派发时间
     */
    @TableField("DISPATCH_TIME")
    @ApiModelProperty(name = "派发时间", notes = "")
    private Date dispatchTime;
    /**
     * 联系方式
     */
    @TableField("CONTACT_DETAILS")
    @ApiModelProperty(name = "联系方式", notes = "")
    private String contactDetails;
    /**
     * 预期完成时间;预期完成时间
     */
    @TableField("EXPECTED_COMPLETION_TIME")
    @ApiModelProperty(name = "预期完成时间", notes = "预期完成时间")
    private Date expectedCompletionTime;


    private CustomerManualWorkOrder customerManualWorkOrder;
    //private List<CustomerManualWorkOrder> em;
    private DeviceAutomaticAlarmWorkOrder deviceAutomaticAlarmWorkOrder;
//    private List<DeviceAutomaticAlarmWorkOrder> de;
}
